package com.engine4cloud.tdf.supervision.dto.update;

import com.engine4cloud.tdf.supervision.dto.JzdxFileDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 进入特定区域
 *
 * @author wenjie
 * @date 2024-05-31 10:24:42
 */
@Data
@Schema(description = "进入特定区域-请求对象")
public class SpAccessSpecificUpdateDTO implements Serializable {
    /**
     * 主键
     */
    @Schema(description = "主键")
    @NotNull(message = "主键不能为空")
    private Long id;

    /**
     * 申请进入场所
     */
    @Schema(description = "申请进入场所", example = "香港特别行政区")
    @NotBlank(message = "申请进入场所不能为空")
    private String sqjrcs;

    /**
     * 申请时间
     */
    @Schema(description = "申请时间", example = "2024-05-01 00:00:00")
    @NotNull(message = "申请时间不能为空")
    private LocalDateTime sqsj;

    /**
     * 申请进入时间
     */
    @Schema(description = "申请进入时间", example = "2024-05-01 00:00:00")
    @NotNull(message = "申请进入时间不能为空")
    private LocalDateTime sqjrrq;

    /**
     * 申请离开时间
     */
    @Schema(description = "申请离开时间", example = "2024-05-01 00:00:00")
    @NotNull(message = "申请离开时间不能为空")
    private LocalDateTime sqjsrq;

    /**
     * 申请理由
     */
    @Schema(description = "申请理由", example = "走亲戚")
    @NotBlank(message = "申请理由不能为空")
    private String sqly;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String bz;

    /**
     * 进入场所
     */
    @Schema(description = "进入场所", example = "[\"460000\",\"46000A\",\"469006\",\"36327\"]")
    @NotEmpty(message = "进入场所不能为空")
    private List<String> areaList;

    /**
     * 文书材料
     */
    @Schema(description = "法律文书", example = """
            [{"name": "张三.png",
            "url": "/supervision/oss-file/oss/file?fileName=09468fc20f2544e28891a058858fdf58.jpeg"}
            ]""")
    @NotEmpty(message = "文书材料不能为空")
    private List<JzdxFileDTO> instrumentList;
}